Optimal. Leaf size=27 \[ \frac{x}{2 \left (1-x^4\right )}+\frac{1}{4} \tan ^{-1}(x)+\frac{1}{4} \tanh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0077244, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {28, 385, 212, 206, 203} \[ \frac{x}{2 \left (1-x^4\right )}+\frac{1}{4} \tan ^{-1}(x)+\frac{1}{4} \tanh ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 28
Rule 385
Rule 212
Rule 206
Rule 203
Rubi steps
\begin{align*} \int \frac{1+x^4}{1-2 x^4+x^8} \, dx &=\int \frac{1+x^4}{\left (-1+x^4\right )^2} \, dx\\ &=\frac{x}{2 \left (1-x^4\right )}-\frac{1}{2} \int \frac{1}{-1+x^4} \, dx\\ &=\frac{x}{2 \left (1-x^4\right )}+\frac{1}{4} \int \frac{1}{1-x^2} \, dx+\frac{1}{4} \int \frac{1}{1+x^2} \, dx\\ &=\frac{x}{2 \left (1-x^4\right )}+\frac{1}{4} \tan ^{-1}(x)+\frac{1}{4} \tanh ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0135165, size = 31, normalized size = 1.15 \[ \frac{1}{8} \left (-\frac{4 x}{x^4-1}-\log (1-x)+\log (x+1)+2 \tan ^{-1}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 42, normalized size = 1.6 \begin{align*}{\frac{x}{4\,{x}^{2}+4}}+{\frac{\arctan \left ( x \right ) }{4}}-{\frac{1}{8+8\,x}}+{\frac{\ln \left ( 1+x \right ) }{8}}-{\frac{1}{8\,x-8}}-{\frac{\ln \left ( x-1 \right ) }{8}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.49966, size = 36, normalized size = 1.33 \begin{align*} -\frac{x}{2 \,{\left (x^{4} - 1\right )}} + \frac{1}{4} \, \arctan \left (x\right ) + \frac{1}{8} \, \log \left (x + 1\right ) - \frac{1}{8} \, \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.23094, size = 123, normalized size = 4.56 \begin{align*} \frac{2 \,{\left (x^{4} - 1\right )} \arctan \left (x\right ) +{\left (x^{4} - 1\right )} \log \left (x + 1\right ) -{\left (x^{4} - 1\right )} \log \left (x - 1\right ) - 4 \, x}{8 \,{\left (x^{4} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.142127, size = 26, normalized size = 0.96 \begin{align*} - \frac{x}{2 x^{4} - 2} - \frac{\log{\left (x - 1 \right )}}{8} + \frac{\log{\left (x + 1 \right )}}{8} + \frac{\operatorname{atan}{\left (x \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09585, size = 39, normalized size = 1.44 \begin{align*} -\frac{x}{2 \,{\left (x^{4} - 1\right )}} + \frac{1}{4} \, \arctan \left (x\right ) + \frac{1}{8} \, \log \left ({\left | x + 1 \right |}\right ) - \frac{1}{8} \, \log \left ({\left | x - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]